package com.sanploy.fed.push.service;



import com.sanploy.fed.push.bean.GovNews;
import com.sanploy.fed.push.bean.NewsClass;

import java.util.List;

/**
 * Created by Administrator on 2016/8/3.
 */
public interface NewsService {
    public List<NewsClass> getClassByParent(Long parentId);
    public void addNewsClass(String name, Long parentId) throws Exception;
    public List<NewsClass> findAllNewClass();
    public void addNews(String name, String content, String author, String url, String classId, String introduce,String classname);
    public GovNews getNewsById(Long id);
    public List<GovNews> getNewsByClassLimit(Long newsClass, int count, int page);
    public List<GovNews> getNewsByPage(int count, int page);
    public List<GovNews> getNewsByPageAll(int count, int page);
    public List<GovNews> getclassOneNew(Long id,int count, int page);
    public List<GovNews> searchNews(String key);

    public Long getNewsNumber();
    public Long getNewsNumber(Long id);
    public Long getOneNewsNumber(Long id);
    public void deleteNews(Long id);
    public void deleteNewsClass(Long id);
    public void updateNewsClass(String name,Long id);
}
